/**********************************************************
Leo Engine - v0.1

file: XFile.h
creation date: 15/05/2009
**********************************************************/

//---------------------------------------------------------
#ifndef LEO_XFILE_H
#define LEO_XFILE_H
//---------------------------------------------------------
#include "system/System.h"
#include <io.h>
#include <string>
#include <dxfile.h>
#include <d3dx9.h>
#include <d3d9.h>
#include "../Graphics/VertexBuffer.h"
#include "../Graphics/GraphicsStructs.h"
using namespace std;
//---------------------------------------------------------
namespace leo
{
//---------------------------------------------------------
class Mesh;
class Graphics;
//---------------------------------------------------------
class LEO_API XFile 
{
	std::string fileName;
	LPDIRECTXFILE* xFile;
	Graphics& graphics;

public:
	XFile(Graphics& _graphics);
	~XFile(void);
	bool LoadMesh(Mesh& _Mesh, const std::string& _Filename);
};

//---------------------------------------------------------
} // end namespace
//---------------------------------------------------------
#endif // LEO_MESH_H
//---------------------------------------------------------
